projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c23e5e7
)
AT91: fix mistake in at91sam9260_devices.c(spi1_hw_init)
author
Reinhard Meyer
<
[email protected]
>
Mon, 25 Jul 2011 21:56:04 +0000
(21:56 +0000)
committer
U-Boot
<uboot@aari01-12.(none)>
Wed, 3 Aug 2011 11:00:56 +0000
(13:00 +0200)
Bits 0..3 in cs_mask = CS0..CS3 in SPI mode require it to be peripheral
Bits 4..7 in cs_mask = CS0..CS3 in GPIO mode require it to be output
Signed-off-by: Reinhard Meyer <
[email protected]
>
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
index 6bdc75c702b550b369afa19c3269998034705682..65b8d516fd828ae666e284af9d89635b5db86ac5 100644
(file)
--- a/
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
+++ b/
arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
@@
-138,7
+138,7
@@
void at91_spi1_hw_init(unsigned long cs_mask)
at91_set_b_periph(AT91_PIO_PORTC, 4, 1);
}
if (cs_mask & (1 << 3)) {
- at91_set_
pio_output
(AT91_PIO_PORTC, 3, 1);
+ at91_set_
b_periph
(AT91_PIO_PORTC, 3, 1);
}
if (cs_mask & (1 << 4)) {
at91_set_pio_output(AT91_PIO_PORTB, 3, 1);